package com.tju.backend.entity;

import com.tju.backend.utils.tool.Constants;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 出仓日志对象 t_out_warehouse_log
 *
 * @author xt-exhibition
 * @date 2021-05-19
 */
@Data
@NoArgsConstructor
public class OutWarehouseLog {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 条码
     */
    private String barcode;

    /**
     * 数量
     */
    private Long num;

    public OutWarehouseLog(TStereoscopicWarehouse sw, int rows) {
        if (rows != 0) {
            this.barcode = Constants.CMSHL + sw.getBoxBarcode();
            this.num = (long) rows;
        }
    }
}
